﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Torimi.Wiki.Web.Default" ValidateRequest="false" %>
<%@ Register src="ContentManagement/AddWikiPage.ascx" tagname="AddWikiPage" tagprefix="uc" %>
<%@ Register src="ContentManagement/SearchWikiPage.ascx" tagname="SearchWikiPage" tagprefix="uc" %>
<%@ Register src="ContentManagement/AddCategory.ascx" tagname="AddCategory" tagprefix="uc" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="cphTitle" runat="server">Torimi Wiki Home Page</asp:Content>

<asp:Content ID="ContentHeader" ContentPlaceHolderID="cphHeader" runat="server">
	<script type="text/javascript" src="Scripts/tinymce/tiny_mce.js"></script>
	<script type="text/javascript">
		$(document).ready(function () {

			tinyMCE.init({
				mode:"textareas",
				theme:"advanced",
				plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
				theme_advanced_styles : "Small=small;Medium=medium;Large=large;Extra Large=VLarge",
				theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect",
				theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,|,undo,redo",
				theme_advanced_buttons3 : "hr,removeformat,|,charmap,|,print,|,link,unlink,image,|,insertdate,preview,|,forecolor",
				theme_advanced_buttons4 : "",
				theme_advanced_toolbar_location : "top",
				theme_advanced_toolbar_align : "center",
				theme_advanced_resizing : false
			});

		});
		</script>
</asp:Content>

<asp:Content ID="ContentBody" ContentPlaceHolderID="cphBody" runat="server">
	<form id="frm" runat="server">
		<h2><asp:Label runat="server" Text="Torimi Wiki" /></h2>
		<uc:AddWikiPage ID="AddWikiPage" runat="server" />
		<uc:AddCategory ID="AddCategory" runat="server" />
		<uc:SearchWikiPage ID="SearchWikiPage" runat="server" />
		<asp:Button ID="btnReset" runat="server" Text="Reset" onclick="btnReset_Click" CausesValidation="false"  />
		<asp:Button ID="btnExport" runat="server" Text="Export" onclick="btnExport_Click" CausesValidation="false" />
	</form>
</asp:Content>